import { createApp } from 'vue'
import App from './App.vue'
import './assets/main.css'
import { IdentityHttpService } from './area/identity/service/identity-http.service';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/customTheme.scss';
import { appRouter } from './area/app.route';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { LogDashboardHttpService } from './area/log-dashboard/service/log-dashboard-http.service';

let app = createApp(App);
app.provide<IdentityHttpService>('IdentityHttpService', new IdentityHttpService());
app.provide<LogDashboardHttpService>('LogDashboardHttpService', new LogDashboardHttpService());
app.use(ElementPlus);
app.use(appRouter);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app');